package com.tind.wyf.baselib.utils.file;

import java.io.Closeable;
import java.io.IOException;

/**
 * Created by JuQiu
 * on 16/7/26.
 *  流 工具类
 */

public class StreamUtils {
    public static void close(Closeable... closeables) {
        if (closeables == null || closeables.length == 0)
            return;
        for (Closeable closeable : closeables) {
            if (closeable != null) {
                try {
                    closeable.close();
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        }
    }
}
